﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RayDen.Library.Core.Primitives;

namespace RayDen.Library.Components.Color.Types
{
    public class ConstWavelengthDependentValue : IWavelengthDependentValue
    {
        private float value;

        public ConstWavelengthDependentValue(float val)
        {
            this.value = val;
        }

        public static implicit operator ConstWavelengthDependentValue(float v)
        {
            return new ConstWavelengthDependentValue(v);
        }

        public float Sample(float lambda)
        {
            return value;
        }
    }


}
